<?php

class Model {

    private $conection;

    public function __construct() {
        $this->conection = mysql_connect("localhost", "root", "");
        mysql_select_db("agenda");
    }

    protected function endCondection() {
        mysql_close($this->conection);
    }

}

?>
